package com.yu.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yu.crm.domain.pojo.CrmDepartmentMember;
import com.yxzz.common.BaseMapper;

import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 部门成员表 Mapper 接口
 * </p>
 *
 * @author donnie-bin
 * @since 2019-06-10
 */
public interface CrmDepartmentMemberMapper extends BaseMapper<CrmDepartmentMember> {

    /**
     * 查询详情
     * @param id
     * @return
     */
    CrmDepartmentMember getById(Serializable id);

    /**
     * 查询列表
     * @param page
     * @param queryInfo
     * @return
     */
    IPage<CrmDepartmentMember> list(IPage<CrmDepartmentMember> page, @Param("queryInfo") CrmDepartmentMember queryInfo, @Param("departmentIds") List<Long> departmentIds);

    /**
     * 获取最大的工号(数字部分)
     * @return
     */
    Integer maxMemberNo();
}
